<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例7</title>
</head>
<body>
    <script>
        const obj = {
            foo:'ECMAScript 6.0',
            bar:'hello'
        }

        let {foo:a,bar:b='hi'} = obj;
        console.log(a,b)
    </script>
</body>
</html>